﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IdentityModel.Selectors;
using System.ServiceModel.Security;
namespace Chinaer.WCF.WebHost.Security
{
    public class CheckUserNameValidator : UserNamePasswordValidator //CustomUserNameSecurityTokenAuthenticator //UserNamePasswordValidator
    {
        public override void Validate(string userName, string password)
        {
            
                throw new SecurityNegotiationException("验证用户名和密码时，未通过检测");            
        }
    }
}